package com.balabala.gym_system.service;

import com.balabala.gym_system.pojo.dto.CoachQueryDto;
import com.balabala.gym_system.pojo.dto.CoachDto;
import com.balabala.gym_system.pojo.dto.CoachUpdateByIdsDto;
import com.balabala.gym_system.pojo.dto.CoachUpdateDto;
import com.balabala.gym_system.pojo.entity.Coach;
import com.balabala.gym_system.pojo.vo.CoachQueryVo;
import com.balabala.gym_system.pojo.vo.CoachVo;
import com.balabala.result.Result;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * Author:zl
 * Date:2023/5/2 13:55
 */

public interface CoachService extends IService<Coach> {
    /**
     * 条件模糊查询
     * @param coachQueryDto
     * @return
     */
    List<CoachQueryVo> findCoachById(CoachQueryDto coachQueryDto);

    /**
     * 添加教练
     * @param coachDto
     * @return
     */
    Result addCoach(CoachDto coachDto);

    /**
     * 修改教练信息
     * @param coachUpdateDto
     * @return
     */
    Boolean updateById(CoachUpdateDto coachUpdateDto);

    /**
     * 修改教练对应的场馆
     * @param coachUpdateByIdsDto
     */
    void coachUpdateByIds(CoachUpdateByIdsDto coachUpdateByIdsDto);

    /**
     * 教练id查询信息
     * @param id
     * @return
     */
    CoachVo findById(Long id);

    /**
     * 查询所有教练信息
     * @return
     */
    List<CoachVo> findAllName();
}
